#ifndef __WFLYCTRL_H__
#define __WFLYCTRL_H__

#define WFLY_FBLR_MAX_VAL (70)

unsigned char wfly_init(void);
unsigned char wfly_lauch(void);
unsigned char wfly_stop(void);
/*
 * in `wfly_accel_down()'
 * @val must less than or equal to 280
 *      and greater than or equal to 260
 *
 * in `wfly_lr/fb_control()'
 * @val must less than or equal to (-WFLY_FBLR_MAX_VAL)
 *      and greater than or equal to (WFLY_FBLR_MAX_VAL)
 * in *_fb_*, val < 0, means plane fly forward
 *          , val > 0, means plane fly backwarad
 *
 * in *_lr_*, val < 0, means plane fly left
 *          , val > 0, means plane fly right
 */
int wfly_accel_up(void);
int wfly_accel_stay(void);
int wfly_accel_down(int val);

int wfly_fb_ctrl(int val);
int wfly_lr_ctrl(int val);

int ping_pong_box_close(void);
int ping_pong_box_open(void);
#endif
